package org.arrow.db.pojo;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * Userinfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "userinfo", catalog = "hip_spr_tap", uniqueConstraints = {
		@UniqueConstraint(columnNames = "WORK_NO"),
		@UniqueConstraint(columnNames = "EMAIL"),
		@UniqueConstraint(columnNames = "LOGIN_NAME") })
public class Userinfo implements java.io.Serializable {

	// Fields

	private Long userId;
	private String workNo;
	private String dispName;
	private String loginName;
	private String loginPass;
	private String email;
	private Boolean enable;
	private Timestamp createDate;
	private Timestamp lastModifyDate;

	// Constructors

	/** default constructor */
	public Userinfo() {
	}

	/** full constructor */
	public Userinfo(Long userId, String workNo, String dispName,
			String loginName, String loginPass, String email, Boolean enable,
			Timestamp createDate, Timestamp lastModifyDate) {
		this.userId = userId;
		this.workNo = workNo;
		this.dispName = dispName;
		this.loginName = loginName;
		this.loginPass = loginPass;
		this.email = email;
		this.enable = enable;
		this.createDate = createDate;
		this.lastModifyDate = lastModifyDate;
	}

	// Property accessors
	@Id
	@Column(name = "USER_ID", unique = true, nullable = false)
	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	@Column(name = "WORK_NO", unique = true, nullable = false, length = 256)
	public String getWorkNo() {
		return this.workNo;
	}

	public void setWorkNo(String workNo) {
		this.workNo = workNo;
	}

	@Column(name = "DISP_NAME", nullable = false, length = 256)
	public String getDispName() {
		return this.dispName;
	}

	public void setDispName(String dispName) {
		this.dispName = dispName;
	}

	@Column(name = "LOGIN_NAME", unique = true, nullable = false, length = 256)
	public String getLoginName() {
		return this.loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	@Column(name = "LOGIN_PASS", nullable = false, length = 256)
	public String getLoginPass() {
		return this.loginPass;
	}

	public void setLoginPass(String loginPass) {
		this.loginPass = loginPass;
	}

	@Column(name = "EMAIL", unique = true, nullable = false, length = 256)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "ENABLE", nullable = false)
	public Boolean getEnable() {
		return this.enable;
	}

	public void setEnable(Boolean enable) {
		this.enable = enable;
	}

	@Column(name = "CREATE_DATE", nullable = false, length = 19)
	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	@Column(name = "LAST_MODIFY_DATE", nullable = false, length = 19)
	public Timestamp getLastModifyDate() {
		return this.lastModifyDate;
	}

	public void setLastModifyDate(Timestamp lastModifyDate) {
		this.lastModifyDate = lastModifyDate;
	}

}